public class Cylinder {
    final double PI = 3.14;
    public int radius;
    public int height;

    public void squaring() {
        double cArea = PI * radius * 2*height;
        System.out.println("半径为" + radius + "," + "高为" + height + "," + "的圆柱体表面积为"+cArea);
    }

    public void cube() {
        double v = PI * radius * radius*height;
        System.out.println("半径为" + radius + "," + "高为" + height + "," + "的圆柱体体积为"+v);
    }

    public static void main(String[] args) {
        Cylinder c = new Cylinder();
        c.radius = 20;
        c.height = 20;
        c.squaring();
        c.cube();
    }
}